<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2017/4/21 0021
 * Time: 下午 12:56
 */

namespace Home\Controller;
use Think\Controller;

class HistoryController extends Controller{
    protected $model = null;
    public function __construct(){
        parent::__construct();
        $this->model = D('Home/history');
    }
    //取出当前userid的浏览历史
    public function history(){
        $userid = I('get.userid');
        $info = $this->model->search($userid);
        //dump($info);exit;
        $this->assign(array(
            'title' => '浏览历史',
            'page_title' => '我的',
            'info' => $info,
        ));
        $this->display();
    }

}